﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace PracticeProject
{
    public partial class SetingToDoneGoal : Form
    {
        public SetingToDoneGoal()
        {
            InitializeComponent();
        }

        public bool ShowToSetDate(Goal g)
        {
            if (ShowDialog() == DialogResult.OK)
            {
                
                    
                    g.SetToDone(dateTimePicker1.Value);
                    return true;
                
            }
            return false;

        }

        private void button1_Click(object sender, EventArgs e)
        {

        }
    }
}